package at.fhooe.mc.pro.treeproject;

public class Main {
	/**
	 * @param asf
	 */
	public static void main(String [] asf){
		TreeNode tree = new TreeNode (17);
		TreeNode head = tree; //um start zu speichern
		
		tree.left = new TreeNode(5);
		tree.right = new TreeNode(42);
		
		tree = tree.left;
		tree.left = new TreeNode(3);
		tree.right = new TreeNode(9);
		
		tree = head;
		tree = tree.right;
		
		tree.left = new TreeNode(24);
		tree.right = new TreeNode(55);
		
		tree = head;
		
		System.out.println(tree.searchNode(tree,9));
		
		tree = head;
		tree.printTreePreOrder(tree);
		System.out.println();
		tree = head;
		tree.printTreeInOrder(tree);
		
		System.out.println();
		tree = head;
		tree.printTreeAndersOrder(tree);
	}
}
